<template>
  <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="page"
      :page-sizes="pageSizes"
      :page-size="pageSize"
      layout="total, sizes, prev, pager, next, jumper"
      :total="total">
    </el-pagination>
</template>

<script>
export default {
    props: ['page','pageSize','total','pageSizes'],
    methods: {
      handleSizeChange(val) {
        this.$emit('sendpageSize',val)
        // console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        this.$emit('sendCurrentChange',val)
        // console.log(`当前页: ${val}`);
      }
    },
    data() {
      return {
      };
    }
}
</script>

<style lang="less" scoped>
    .el-pagination{
         height: 60px;
        display: flex;
        align-items: center;
        justify-content: right;
    }
</style>